package com.ds.infra.rpc.properties;

import com.ds.infra.rpc.core.constant.RpcConstants;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 作用：RPC基础配置属性
 *
 * @author WeiShaoying
 */
@Data
@ConfigurationProperties(prefix = "rpc")
public class RpcProperties {

    /**
     * 注册中心地址
     */
    private String zkAddress = "localhost:2181";

    /**
     * 服务端端口
     */
    private Integer serverPort = RpcConstants.SERVER_PORT;

}
